<?php
/**
 * Created by : PhpStorm
 * User: ZPF
 * Date: 2022/4/1
 * Time: 14:14
 */

namespace app\admin\controller;


use app\admin\model\ModuleModel;
use app\BaseController;

class Module extends BaseController
{
    protected $middleware = [
        'CheckTokenMiddleware'
    ];
    /**
     * 获取模块列表
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function list()
    {
        $list=ModuleModel::index();
        api_return(200,'',['list'=>$list]);
    }
}
